TKey
The type of the key.
TValue
The type of the value.
BenSelect Documentation
SafeDictionary<TKey,TValue> Class
See Also  Send Feedback
Selerix.Foundation.Data Namespace : SafeDictionary<TKey,TValue> Class
Dictionary that doesn't throw exception if item doesn't exists in [] access. Acts like Hashtable

Type Parameters

TKey
The type of the key.
TValue
The type of the value.

Public Properties

 NameDescription
public PropertyComparerGets the IEqualityComparer that is used to determine equality of keys for the dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public PropertyCountGets the number of key/value pairs contained in the Dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public PropertyItemGets or sets the value associated with the specified key.  
public PropertyKeysGets a collection containing the keys in the Dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public PropertyValuesGets a collection containing the values in the Dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
Top

Public Methods

 NameDescription
public MethodAddAdds the specified key and value to the dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodClearRemoves all keys and values from the Dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodContainsDetermines whether the SafeDictionary<TKey,TValue> contains the specified key. Acts like Hashtable.  
public MethodContainsKeyDetermines whether the Dictionary contains the specified key. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodContainsValueDetermines whether the Dictionary contains a specific value. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodGetEnumeratorReturns an enumerator that iterates through the Dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodGetObjectDataImplements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the Dictionary instance. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodOnDeserializationImplements the System.Runtime.Serialization.ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodRemoveRemoves the value with the specified key from the Dictionary. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
public MethodTryGetValueGets the value associated with the specified key. (Inherited from System.Collections.Generic.Dictionary<TKey,TValue>)
Top

Inheritance Hierarchy

System.Object
   System.Collections.Generic.Dictionary<TKey,TValue>
      Selerix.Foundation.Data.SafeDictionary<TKey,TValue>

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2024 All Rights Reserved.